/* 爬虫页面自定义样式 */

.crawler-page-container {
  padding: 24px;
  min-height: 100%;
  background: var(--layout-background);
}

.crawler-page-title {
  color: var(--glow-color);
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  text-shadow: 0 0 10px var(--glow-color);
}

.crawler-page-subtitle {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.crawler-status-card {
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.crawler-status-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: var(--glow-color);
}

.crawler-status-card-icon-container {
  background: var(--icon-background);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.crawler-status-card-icon {
  color: var(--glow-color);
  font-size: 20px;
}

.crawler-status-card-title {
  font-size: 14px;
  opacity: 0.8;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.crawler-status-card-value {
  font-size: 20px;
  font-weight: bold;
  color: var(--glow-color);
}

.crawler-module-section {
  margin-bottom: 24px;
}

.crawler-module-title {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.crawler-module-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(to bottom, var(--crawler-primary), var(--crawler-secondary));
  border-radius: 2px;
  margin-right: 12px;
}

.crawler-module-card {
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--card-shadow);
  height: 100%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.crawler-module-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--hover-shadow);
  border-color: var(--glow-color);
}

.crawler-module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--crawler-primary), var(--crawler-secondary), var(--crawler-accent));
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.crawler-module-card:hover::before {
  transform: scaleX(1);
}

.crawler-module-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--crawler-primary), var(--crawler-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: 16px;
}

.crawler-module-card:hover::after {
  opacity: 0.05;
}

.crawler-module-icon-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--icon-background);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.crawler-module-icon-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  transform: rotate(30deg);
  transition: all 0.5s ease;
}

.crawler-module-card:hover .crawler-module-icon-container::before {
  transform: rotate(30deg) translate(20%, 20%);
}

.crawler-module-icon {
  color: var(--glow-color);
  font-size: 28px;
  transition: all 0.3s ease;
}

.crawler-module-card:hover .crawler-module-icon {
  transform: scale(1.2) rotate(10deg);
}

.crawler-module-card-title {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 600;
  text-align: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.crawler-module-card:hover .crawler-module-card-title {
  color: var(--glow-color);
  text-shadow: 0 0 8px rgba(97, 220, 163, 0.5);
}

.crawler-module-card-description {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  transition: all 0.3s ease;
}

.crawler-module-card:hover .crawler-module-card-description {
  color: var(--text-primary);
}

.crawler-project-section {
  margin-top: 24px;
}

.crawler-project-title {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.crawler-project-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(to bottom, var(--crawler-primary), var(--crawler-secondary));
  border-radius: 2px;
  margin-right: 12px;
}

.crawler-project-card {
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.crawler-project-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--hover-shadow);
  border-color: var(--glow-color);
}

.crawler-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crawler-primary), var(--crawler-secondary));
  opacity: 0.5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.crawler-project-card:hover::before {
  transform: scaleX(1);
}

.crawler-project-icon-container {
  background: var(--icon-background);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.crawler-project-icon {
  color: var(--glow-color);
  font-size: 18px;
}

.crawler-project-name {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.crawler-project-card:hover .crawler-project-name {
  color: var(--glow-color);
}

.crawler-project-description {
  font-size: 12px;
  color: var(--text-secondary);
}

.crawler-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.crawler-empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
  color: var(--glow-color);
  animation: float 3s ease-in-out infinite;
}

.crawler-empty-state-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.crawler-empty-state-description {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 深色主题变量 */
[data-theme="dark"] {
  --glow-color: #61dca3;
  --text-primary: rgba(255, 255, 255, 0.8);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --card-background: rgba(30, 30, 30, 0.8);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  --icon-background: rgba(97, 220, 163, 0.15);
  --crawler-primary: #61dca3;
  --crawler-secondary: #4caf50;
  --crawler-accent: #81c784;
  --layout-background: #0a0a0a;
}

/* 浅色主题变量 */
[data-theme="light"] {
  --glow-color: #1890ff;
  --text-primary: rgba(0, 0, 0, 0.85);
  --text-secondary: rgba(0, 0, 0, 0.65);
  --card-background: rgba(255, 255, 255, 0.9);
  --card-border: rgba(0, 0, 0, 0.06);
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --icon-background: rgba(24, 144, 255, 0.15);
  --crawler-primary: #1890ff;
  --crawler-secondary: #40a9ff;
  --crawler-accent: #69c0ff;
  --layout-background: #f0f2f5;
}

/* 主题切换动画 */
.theme-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 爬虫页面特有的动画效果 */
.crawler-glow-effect {
  animation: crawlerGlow 3s ease-in-out infinite alternate;
}

@keyframes crawlerGlow {
  0% {
    box-shadow: 0 0 5px var(--glow-color);
  }
  100% {
    box-shadow: 0 0 20px var(--glow-color), 0 0 30px var(--glow-color);
  }
}

.crawler-pulse-effect {
  animation: crawlerPulse 2s ease-in-out infinite;
}

@keyframes crawlerPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .crawler-page-container {
    padding: 16px;
  }
  
  .crawler-page-title {
    font-size: 24px;
  }
  
  .crawler-page-subtitle {
    font-size: 14px;
  }
  
  .crawler-module-title,
  .crawler-project-title {
    font-size: 20px;
  }
  
  .crawler-status-card-value {
    font-size: 18px;
  }
  
  .crawler-module-icon {
    font-size: 24px;
  }
  
  .crawler-module-icon-container {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .crawler-page-container {
    padding: 12px;
  }
  
  .crawler-page-title {
    font-size: 22px;
  }
  
  .crawler-module-card {
    padding: 16px;
  }
  
  .crawler-module-icon-container {
    width: 45px;
    height: 45px;
  }
  
  .crawler-module-icon {
    font-size: 20px;
  }
}